package com.scst.service;

import com.scst.dto.OrdersPaymentDTO;
import com.scst.dto.OrdersSubmitDTO;
import com.scst.vo.OrderPaymentVO;
import com.scst.vo.OrderSubmitVO;
import org.springframework.stereotype.Service;

@Service
public interface OrderService {
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    void userCancelById(Long id);

    void reminder(Long id);
}
